# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.http import HttpResponse

from django.shortcuts import render

# Create your views here.


# 第一个参数必须是 request, request 变量里面包含get或post的内容，用户浏览器，系统等信息
def home(request):
    return render(request, 'learn.html')


def list_page(request):
    tutorial_list = ["H5", "CSS3", "BootStrap", "NodeJS", "Python", "PHP"]
    info_dict = {'name': 'lomo', 'age': 15, 'sex': 'male', 'weight': '180'}
    return render(request, 'list.html', {'TutorialList': tutorial_list, 'InfoDict': info_dict})


